<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html >
<html>
<head>
<title>评价打分</title>
<t:base type="jquery,easyui,tools"></t:base>
</head>
<body style="overflow-x: hidden">
	 <t:formvalid formid="formobj" dialog="true" layout="table" action="processingServiceController.do?doScore" beforeSubmit="validateForm" tiptype="3">
		<input name="id" type="hidden" value="${id }"/>
		<table cellpadding="0" cellspacing="1" class="formtable">
			<tr>
				<td align="right">
					<label class="Validform_label">
						评价分数（满分10分）:
					</label>
					</td>
				<td class="value"> 
					<input type="text" name="score" id="score"   onkeypress="numberValidate()" maxlength="2"/>
				</td>
			</tr>	
		 
		</table>
	</t:formvalid>
	<script>
		 
		 
		 function validateForm(){
			 var score = $('#score').val();
			 if(score.length == 0){
				 tip('请输入分数');
				 return false;
			 }
			 
			 
			 score = parseInt(score);
			 if(score >10){
				 tip('分数不能大于10');
				 return false;
			 }
			 
			 if(score <0){
				 tip('分数不能小于0');
				 return false;
			 }
			 
			 return true;
		 }
	</script>
</body>
</html>
 